package com.zhz.system.contract.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @author zhouhengzhe
 * @date 2023/4/30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserAssignRoleRequest {

    @ApiModelProperty("用户ID")
    @NotBlank(message = "用户ID不能为空")
    private String id;

    @ApiModelProperty("角色ID集合")
    @NotEmpty(message = "角色ID集合不能为空")
    private List<String> roleIds;
}
